/** 资费配置 **/
import { base_url } from '../request.config';

const chargesApi = {
  sendTariff_detailList: 'thanos/sendTariff/detailList', // 柜体寄件资费配置详情列表
  sendTariff_list: 'thanos/sendTariff/list', // 柜体寄件资费配置列表

  cab_tariff_list: 'thanos/cab/tariff/list', // 柜体套餐列表
  cab_tariff: 'thanos/cab/tariff', // 新增、修改、详情柜体套餐
  cab_tariff_log_list: 'thanos/cab/tariff/log/list', // 修改日志列表
  cab_tariff_log: 'thanos/cab/tariff/log', // 修改日志详情
  cab_tariff_log_compare: 'thanos/cab/tariff/log/compare', // 修改日志版本对比

  parttime: 'thanos/parttime', // 兼职工资配置新增与编辑
  parttime_list: 'thanos/parttime/list', // 兼职公司配置列表

  posthouseTariff: 'thanos/posthouseTariff', // 新增驿站资费配置
  posthouseTariff_list: 'thanos/posthouseTariff/list', // 驿站资费配置列表

  cabTariff_list: 'thanos/cabTariff/list', // 柜体寄件套餐配置列表
  cabTariff_default: 'thanos/cabTariff/default', // 设置为默认
  cabTariff_import: 'thanos/cabTariff/import', // 资费导入
  cabTariff_detailList: 'thanos/cabTariff/detailList', // 柜体寄件套餐详情
  cabTariff_expressList: 'thanos/cabTariff/expressList', // 获取配置的快递公司列表
  cabTariff_unSelectExpressList: 'thanos/cabTariff/unSelectExpressList', // 获取未配置的快递公司列表
  cabTariff_express: 'thanos/cabTariff/express', // 添加、删除 活动合作的快递公司

  // 甘肃银行列表
  bank_payConfList:'thanos/payConf/list',
  save_bankCabinet:'thanos/payConf',
};

const charges: any = Object.keys(chargesApi)
  .reduce((origin, item) => {
    origin[item] = `${base_url}/${chargesApi[item]}`;
    return origin;
  }, {})

export default charges;
